package cn.wit.luohui.day05;

public class Colum {
	public static void main(String[] args) {

	double[][] array={{1.5, 2, 3, 4},
	{2.3, 5, 8, 9},
	{3, 5.4, 7, 10}};
	
	for(int j=0;j<array[0].length;j++) {
		
		int column=j;
	sumColumn(array,column);
	}
	
}
	public static double sumColumn(double[][] matrix, int column) {
		double sum=0;
	
		for (int i=0;i<matrix.length;i++) {
		
		 sum+=matrix[i][column];
			
			}
		
		System.out.println(sum);
		return 0;
		
	}
}
